package com.ioog.domain.dao;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.ioog.domain.model.Location;

public interface LocationDAO {

	@Transactional(propagation=Propagation.REQUIRES_NEW)
	void store(Location location);
	@Transactional(readOnly=true)
	Location findById(Long id);
	@Transactional(readOnly=true)
	List<Location> findAll();
	@Transactional(readOnly=true)
	List<Location> findByExample(Location exampleInstance, String... excludeProperty);
	@Transactional
	void delete(Long id);
	
}
